import Loading from "./Loading.vue";
import Vue from 'vue';

let LoadingConstructor = Vue.extend(Loading);

let loading = (option)=>{
  let instance  = new LoadingConstructor();

  instance.$mount(document.createElement("div"));
  document.body.appendChild(instance.$el);

  instance.show = true;
  instance.option = option;
  return instance;
}

export default loading;
